package mvp.com.bbc.app;

import io.reactivex.Observable;
import mvp.com.bbc.bean.ArtBeans;
import mvp.com.bbc.bean.ArtListBean;
import mvp.com.bbc.bean.HotCoultBean;
import mvp.com.bbc.bean.LoginBean;
import retrofit2.http.POST;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/9/29.
 */

public interface ApiUrls {

    //图片地址头REQUSTE_HEADE_IMG
    String image_request_header = "http://39.108.176.78/";

    //本地请求头
    public static final String REQUSTE_HEADE = "http://192.168.8.187:8090/FHMYSQL3/app/";

    public interface Login {
        @POST("appuser/login.do")
        Observable<LoginBean> getData(@Query("phone") String phone, @Query("password") String password);
    }

    //热门咨询
    public interface HotConsult {
        @POST("information/list.do")
        Observable<HotCoultBean> getData(@Query("currentPage") String currentPage);
    }

    //帖子列表名字
    public interface ArtListName {
        @POST("/theme/findlistPage.do")
        Observable<ArtListBean> getData();
    }

    //列表
    public interface ArtList {
        @POST("article/findbytheme.do")
        Observable<ArtBeans> getData(@Query("themeid") String themeid, @Query("currentPage") String currentPage, @Query("userid") String userid);
    }

    //点赞
    public interface ArtClick {
        @POST("clicklike/update.do")
        Observable<String> getData(@Query("articleid") String articleid, @Query("userid") String userid, @Query("status") String status);
    }
}
